import Vue from 'vue'
import 'element-ui/lib/theme-chalk/index.css';
import ElementUI from 'element-ui';
import logForTranslate from '@/utils/logForTranslate.js'
Vue.use(ElementUI);
import {
  Input, Button, Message, MessageBox, Autocomplete, Dialog,
  DropdownItem, DropdownMenu, Dropdown,Popover,Select,Option,Radio,
  Switch,Tabs,TabPane,DatePicker,RadioGroup,RadioButton,Checkbox 
} from 'element-ui';


import store from './store';
import {createRouter} from './router'
import {createTrtcCalling} from './trtc-calling';
import TRTCCalling from 'trtc-calling-js';
import App from './App.vue';
import * as echarts from 'echarts';
import axios from "axios"

Vue.use(Input);
Vue.use(Button);
Vue.use(Autocomplete);
Vue.use(Dialog);
Vue.use(Dropdown);
Vue.use(DropdownMenu);
Vue.use(DropdownItem);
Vue.use(Popover);
Vue.use(Select);
Vue.use(Option);
Vue.use(Radio);
//Vue.use(Notification);
Vue.use(Switch);
Vue.use(Tabs);
Vue.use(TabPane);
Vue.use(DatePicker);
Vue.use(RadioGroup);
Vue.use(RadioButton);
Vue.use(Checkbox);
Vue.prototype.$echarts = echarts;
Vue.prototype.$message = Message;
Vue.prototype.$confirm = MessageBox.confirm;
//Vue.prototype.$notify = Notification;

Vue.prototype.$trtcCalling = createTrtcCalling();
Vue.prototype.TrtcCalling = TRTCCalling;
Vue.prototype.logForTranslate = logForTranslate;
Vue.config.productionTip = false

// axios.defaults.baseURL = process.env.NODE_ENV === "deveplopment"?"/api":process.env.VUE_APP_URL
Vue.prototype.$http = axios;

new Vue({
  render: h => h(App),
  store,
  router: createRouter()
}).$mount('#app')
